package com.example.feign;

import com.example.feign.entity.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "student-service")
public interface StudentService {

    @GetMapping("/api/student/getStudent/{id}")
    Student getStudentById(@PathVariable("id") Long id);

}
